#!/usr/bin/python3

import logging

def use_logging(fun):
    def wrapper(*args, **kwargs):
        logging.warn("%s is running" % func.__name__)
        return func(*args,**kwargs)
    return wrapper

@use_logging
def foo():
    print('i am foo')

@use_logging
def bar():
    print("I an bar")

foo()

bar()

